<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h2>{{msg}}</h2>
        <p>{{count+1}}</p>
    </div>

    <script>

        // 1写法-$mount挂载与template的区别,$mount会延迟挂载
        const vm = new Vue({
            data:{
                msg:"我tm来辣",
                count:1,
            }
        }).$mount("#app")

        // 2.Vue的静态方法
        // vm.$mount("#app")
    </script>
</body>
</html>